<!--
 * @Description  : 
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-04-21 13:49:22
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-04-25 14:32:43
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\sys-setting\\components\\role-management\\edit\\edit.component.html
 * Copyright (C) 2022 huzhenhong. All rights reserved.
-->
<div class="modal-header">
  <div class="modal-title">{{ params.id === 0 ? '新增角色' : '编辑角色' }}</div>
</div>
<nz-spin *ngIf="!params" class="modal-spin"></nz-spin>
<div *ngIf="params">
  <sf #sf [compact]="true" [ui]="{'*': { spanLabelFixed: 120, grid: { span: 24 } } }" [schema]="schema"
    [button]="'none'"> </sf>
</div>
<div class="box">
  <se-container se-container="1">
    <se label="角色权限" required [labelWidth]="120">
      <app-menu-tree #menu (changeData)="getData($event)" [type]="params.id === 0 ? 'add' : 'edit'" [roleId]="params.id"
        [appId]="params.appId" [isAuthorityIdDTOList]="roleInfoData.authority || []"
        [authorityAssistId]="roleInfoData.authorityAssistId || []" (changeIF)="changeIF($event)">
      </app-menu-tree>
    </se>
  </se-container>
</div>

<div class="modal-footer">
  <button nz-button type="button" (click)="close()">取消</button>
  <button nz-button type="button" nzType="primary" (click)="sure()">确定</button>
</div>